import request from '@/utils/request'
// 获取工单列表
export const list = function(params) {
  return request({
    url: '/api/task-service/task/search',
    method: 'GET',
    params
  })
}
// 角色
export const roleList = function(params) {
  return request({
    url: '/api/user-service/user/search',
    method: 'GET',
    params
  })
}
// 角色
export const addRole = function(data) {
  return request({
    url: '/api/task-service/task/create',
    method: 'POST',
    data
  })
}
// 搜索
export const serList = function(params) {
  return request({
    url: '/api/task-service/task/search',
    method: 'GET',
    params
  })
}
